package luj.game.robot.internal.start.listener;

import com.google.common.collect.ImmutableList;
import luj.game.robot.api.boot.RobotStartListener;

final class InternalImpl implements RobotStartListener.Internal {

  @Override
  public RobotStartListener.Network network() {
    var network = new INetworkImpl();
    network._handleList = ImmutableList.copyOf(_startCtx._httpHandleMap.values());
    network._adminRef = _startCtx._adminRef;

    return network;
  }

  StartContextImpl _startCtx;
}
